package com.jic.market.api.after;

import com.jic.common.base.vo.RestResult;
import com.jic.market.request.rest.groupon.LaunchOrJoinGrouponRequest;
import com.jic.market.response.rest.groupon.LaunchOrJoinGrouponResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description: GrouponApi
 * date: 2020/4/29 17:33
 * author: wangys
 * version: 1.0
 */
@Api(value = "营销中心拼团-提供内部调用-feign", tags = "营销中心优惠券-提供内部调用-feign")
@FeignClient(name = "jic-market", path = "/api/groupon")
public interface GrouponApi {
    @PostMapping("/launch-or-join-groupon")
    @ApiOperation("开参团活动H5")
    RestResult<LaunchOrJoinGrouponResponse> launchOrJoinGroupon(@RequestBody LaunchOrJoinGrouponRequest request);

    @PostMapping("/getMyGroupCount")
    @ApiOperation("我的拼团数量")
    RestResult getMyGroupCount(@RequestBody Long userId);
}
